import { createRouter, createWebHashHistory } from "vue-router";
// import { createRouter, createWebHistory } from "vue-router";

const routes = [
  {
    path: "/",
    redirect: "/gift"
  },
  {
    path: "/gift",
    name: "gift",
    component: () => import("../views/gift.vue")
  },
  {
    path: "/giftCallback",
    name: "giftCallback",
    component: () => import("../views/giftCallback.vue")
  },
  {
    path: "/jdGift",
    name: "jdGift",
    component: () => import("../views/jdGift.vue")
  },
  {
    path: "/jdGiftCallback",
    name: "jdGiftCallback",
    component: () => import("../views/jdGiftCallback.vue")
  }
];

const router = createRouter({
  // history: createWebHistory(),
  history: createWebHashHistory(),
  routes
});

export default router;
